package com.xmg.p2p.business.service;

import com.xmg.p2p.base.query.PageResult;
import com.xmg.p2p.base.query.QueryObject;
import com.xmg.p2p.business.domain.BidRequest;
import com.xmg.p2p.business.domain.BidRequestAuditHistory;

import java.util.List;

public interface IBidRequestService {
    public void update(BidRequest request);

    boolean canApplyBidRequest(Long id);

    void apply(BidRequest bidRequest);

    PageResult query(QueryObject qo);

    void publishAudit(Long id, String remark, int state);

    BidRequest selectByKey(Long id);

    List<BidRequestAuditHistory> listAuditHistoryByBidRequest(Long id);

    List<BidRequest> indexList(int i);
}
